﻿using System;

namespace RbmlVisualizer.Logging
{
    public class LogMessage
    {
        public LogMessage(string message, LogLevelType levelType, DateTime time)
        {
            _message = message;
            _levelType = levelType;
            _dateTime = time;
        }

        private readonly string _message;
        private readonly LogLevelType _levelType;
        private readonly DateTime _dateTime;

        public string Message
        {
            get { return _message; }
        }

        public LogLevelType LevelType
        {
            get { return _levelType; }
        }
        public DateTime MessageDateTime
        {
            get { return _dateTime; }
        }

        public override string ToString()
        {
            return string.Format("{0}-{1}: {2}", LevelType, MessageDateTime, Message);
        }
    }
}
